;
//定义p
var p = 8;
var f = 0;
//定义函数l
 function l(e, t, a, n, i, r, o) {
    return s(a ^ (t | ~n), e, t, i, r, o)
};
//定义函数o
function o(e, t, a, n, i, r, o) {
    return s(t ^ a ^ n, e, t, i, r, o)
};
//定义函数r
  function r(e, t, a, n, i, r, o) {
    return s(t & n | a & ~n, e, t, i, r, o)
};
//定义函数u
function u(e, t) {
    return e << t | e >>> 32 - t
};
//定义函数d
function d(e, t) {
    var a = (65535 & e) + (65535 & t);
    return (e >> 16) + (t >> 16) + (a >> 16) << 16 | 65535 & a
};
//定义函数s
 function s(e, t, a, n, s, i) {
    return d(u(d(d(t, e), d(n, i)), s), a)
};
//定义函数i
function i(e, t, a, n, i, r, o) {
    return s(t & a | ~t & n, e, t, i, r, o)
};
//定义函数n
 function n(e, t) {
    e[t >> 5] |= 128 << t % 32,
    e[14 + (t + 64 >>> 9 << 4)] = t;
    for (var a = 1732584193, n = -271733879, s = -1732584194, c = 271733878, u = 0; u < e.length; u += 16) {
        var m = a
          , h = n
          , f = s
          , p = c;
        a = i(a, n, s, c, e[u + 0], 7, -680876936),
        c = i(c, a, n, s, e[u + 1], 12, -389564586),
        s = i(s, c, a, n, e[u + 2], 17, 606105819),
        n = i(n, s, c, a, e[u + 3], 22, -1044525330),
        a = i(a, n, s, c, e[u + 4], 7, -176418897),
        c = i(c, a, n, s, e[u + 5], 12, 1200080426),
        s = i(s, c, a, n, e[u + 6], 17, -1473231341),
        n = i(n, s, c, a, e[u + 7], 22, -45705983),
        a = i(a, n, s, c, e[u + 8], 7, 1770035416),
        c = i(c, a, n, s, e[u + 9], 12, -1958414417),
        s = i(s, c, a, n, e[u + 10], 17, -42063),
        n = i(n, s, c, a, e[u + 11], 22, -1990404162),
        a = i(a, n, s, c, e[u + 12], 7, 1804603682),
        c = i(c, a, n, s, e[u + 13], 12, -40341101),
        s = i(s, c, a, n, e[u + 14], 17, -1502002290),
        n = i(n, s, c, a, e[u + 15], 22, 1236535329),
        a = r(a, n, s, c, e[u + 1], 5, -165796510),
        c = r(c, a, n, s, e[u + 6], 9, -1069501632),
        s = r(s, c, a, n, e[u + 11], 14, 643717713),
        n = r(n, s, c, a, e[u + 0], 20, -373897302),
        a = r(a, n, s, c, e[u + 5], 5, -701558691),
        c = r(c, a, n, s, e[u + 10], 9, 38016083),
        s = r(s, c, a, n, e[u + 15], 14, -660478335),
        n = r(n, s, c, a, e[u + 4], 20, -405537848),
        a = r(a, n, s, c, e[u + 9], 5, 568446438),
        c = r(c, a, n, s, e[u + 14], 9, -1019803690),
        s = r(s, c, a, n, e[u + 3], 14, -187363961),
        n = r(n, s, c, a, e[u + 8], 20, 1163531501),
        a = r(a, n, s, c, e[u + 13], 5, -1444681467),
        c = r(c, a, n, s, e[u + 2], 9, -51403784),
        s = r(s, c, a, n, e[u + 7], 14, 1735328473),
        n = r(n, s, c, a, e[u + 12], 20, -1926607734),
        a = o(a, n, s, c, e[u + 5], 4, -378558),
        c = o(c, a, n, s, e[u + 8], 11, -2022574463),
        s = o(s, c, a, n, e[u + 11], 16, 1839030562),
        n = o(n, s, c, a, e[u + 14], 23, -35309556),
        a = o(a, n, s, c, e[u + 1], 4, -1530992060),
        c = o(c, a, n, s, e[u + 4], 11, 1272893353),
        s = o(s, c, a, n, e[u + 7], 16, -155497632),
        n = o(n, s, c, a, e[u + 10], 23, -1094730640),
        a = o(a, n, s, c, e[u + 13], 4, 681279174),
        c = o(c, a, n, s, e[u + 0], 11, -358537222),
        s = o(s, c, a, n, e[u + 3], 16, -722521979),
        n = o(n, s, c, a, e[u + 6], 23, 76029189),
        a = o(a, n, s, c, e[u + 9], 4, -640364487),
        c = o(c, a, n, s, e[u + 12], 11, -421815835),
        s = o(s, c, a, n, e[u + 15], 16, 530742520),
        n = o(n, s, c, a, e[u + 2], 23, -995338651),
        a = l(a, n, s, c, e[u + 0], 6, -198630844),
        c = l(c, a, n, s, e[u + 7], 10, 1126891415),
        s = l(s, c, a, n, e[u + 14], 15, -1416354905),
        n = l(n, s, c, a, e[u + 5], 21, -57434055),
        a = l(a, n, s, c, e[u + 12], 6, 1700485571),
        c = l(c, a, n, s, e[u + 3], 10, -1894986606),
        s = l(s, c, a, n, e[u + 10], 15, -1051523),
        n = l(n, s, c, a, e[u + 1], 21, -2054922799),
        a = l(a, n, s, c, e[u + 8], 6, 1873313359),
        c = l(c, a, n, s, e[u + 15], 10, -30611744),
        s = l(s, c, a, n, e[u + 6], 15, -1560198380),
        n = l(n, s, c, a, e[u + 13], 21, 1309151649),
        a = l(a, n, s, c, e[u + 4], 6, -145523070),
        c = l(c, a, n, s, e[u + 11], 10, -1120210379),
        s = l(s, c, a, n, e[u + 2], 15, 718787259),
        n = l(n, s, c, a, e[u + 9], 21, -343485551),
        a = d(a, m),
        n = d(n, h),
        s = d(s, f),
        c = d(c, p)
    }
    return Array(a, n, s, c)
};
//定义函数m
 function m(e) {
    for (var t = Array(), a = (1 << p) - 1, n = 0; n < e.length * p; n += p)
        t[n >> 5] |= (e.charCodeAt(n / p) & a) << n % 32;
    return t
}
//定义函数c
function c(e, t) {
    var a = m(e);
    a.length > 16 && (a = n(a, e.length * p));
    for (var s = Array(16), i = Array(16), r = 0; r < 16; r++)
        s[r] = 909522486 ^ a[r],
        i[r] = 1549556828 ^ a[r];
    var o = n(s.concat(m(t)), 512 + t.length * p);
    return n(i.concat(o), 640)
};
//定义函数h
function h(e) {
    for (var t = f ? "0123456789ABCDEF" : "0123456789abcdef", a = "", n = 0; n < 4 * e.length; n++)
        a += t.charAt(e[n >> 2] >> n % 4 * 8 + 4 & 15) + t.charAt(e[n >> 2] >> n % 4 * 8 & 15);
    return a
}
//定义函数hex_hmac_md5
function hex_hmac_md5(e, t) {
    t = JSON.stringify( t );
    return h(c(e, t))

};

var data = {"packageList":{"packages":{"header":{"requestType":"RHCVRGRISK","comId":"GTO2O20170118","from":"iwechat","sendTime":"2020-02-02 10:38:03","orderSerial":"orderId","comSerial":"comSerial"},"request":"LPLY/zlKygDjc5dN186qGwPRKtMHrTTQw01ay18AyFMrr4PmZUSxCxlz9delcZOhYXm77Axf9RE3HIXqeGhzWP4wVkiXnqp6RVQ4//k0vx5tmj6dI+KbU1eHcdhfUYuBky8Ts5E54E+J2TzyxlCpq4A8ThqcaG7HOasscTaMemg="}}}
var transfer = "GTO2OINTERFACE2017#@!%88";
result = hex_hmac_md5( transfer,data);
console.log( result )